package com.springboot.lock.service;

import com.springboot.lock.lock_redis.anno.RedisLock;
import com.springboot.lock.lock_zk.ZkLock;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @Author: TongRui乀
 * @Date: 2020-08-06 10:55
 * @description：
 */
@Slf4j
@Service
public class LockTestServiceImpl implements LockTestService {


    @Override
    @ZkLock(columns = {"p1"})
    public void test(String p1) {

      log.info("调用Service方法");

    }
}
